package com.base;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @ClassName: UserApp
 * @Description: 用户中心模块启动类
 * @Author: CJQ
 * @Date: 2021/2/2 9:20
 */
@SpringBootApplication
@EnableDiscoveryClient //代表自己是一个服务提供方 适用任何注册中心
@EnableFeignClients     //表示我可以调用其他服务
@EnableScheduling
@MapperScan("com.base.mapper")
public class UserApp {

    public static void main(String[] args) {
        SpringApplication.run(UserApp.class, args);
    }

}
